package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/one")
    public String hello_1() {
        System.out.println("hello1");
        System.out.println("hello2");
        return "hello1";
    }

    @GetMapping("/two")
    public String hello_2() {
        // TODO:
        System.out.println("不得行，合并不了");
        System.out.println("我还硬是不得信");
        return "hello2";
    }

    public void hello_3() {
        int i = 0;
        if (i == 1) {
            System.out.println(i);
        } else if (i == 83) {
            System.out.println(i);
        } else if (i == 188) {
            System.out.println(12);
        } else if (i == 250) {
            System.out.println(i);
        } else if (i == 2) {
            System.out.println(i);
        } else if (i == 3) {
            System.out.println(i);
        } else {
            System.out.println(i);
        }
    }

}
